<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class ClueIndexResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id'             => $this->id,
            'account_id'     => $this->account_id,
            'clue_id'        => $this->clue_id,
            'adv_id'         => $this->adv_id,
            'ad_plan_id'     => $this->ad_plan_id,
            'ad_plan_name'   => $this->ad_plan_name,
            'site_id'        => $this->site_id,
            'clue_type'      => $this->clue_type,
            'module_id'      => $this->module_id,
            'create_time'    => $this->create_time,
            'clue_source'    => $this->clue_source,
            'gender'         => $this->gender,
            'age'            => $this->age,
            'remark_dict'    => $this->remark_dict,
            'external_url'   => $this->external_url,
            'module_name'    => $this->module_name,
            'name'           => $this->name,
            'email'          => $this->email,
            'weixin'         => $this->weixin,
            'qq'             => $this->qq,
            'province_name'  => $this->province_name,
            'city_name'      => $this->city_name,
            'address'        => $this->address,
            'remark'         => $this->remark,
            'form_remark'    => $this->form_remark,
            'appname'        => $this->appname,
            'convert_status' => $this->convert_status,
            'telphone'       => $this->telphone,
            'type'           => $this->type,
            'distributions'  => $this->distributions,
            'tags'           => $this->tags,
        ];
    }
}
